#
# Be sure to run `pod lib lint CXHAdSDK-UBiMAX.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'CXHAdSDK-UBiMAX'
  s.version          = '1.9.2'
  s.summary          = 'A short description of CXHAdSDK-UBiMAX.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://gitee.com/two-jumps/cxhad-sdk-ubi-max'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { '二跳' => '14096268+two-jumps@user.noreply.gitee.com' }
  s.source           = { :git => 'git@gitee.com:two-jumps/cxhad-sdk-ubi-max.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '11.0'

#  s.source_files = 'CXHAdSDK-UBiMAX/Classes/**/*'
  
  s.requires_arc = true
  s.static_framework = true
  
#  s.dependency 'UBiMAXAdSDK', '1.2.0'
#  s.dependency 'UBiMAXSplash', '1.1.0'
#  s.dependency 'UBiMAXNative', '1.1.1'
#  s.dependency 'UBiMAXRewardedVideo', '1.1.0'
#  s.dependency 'UBiMAXInterstitial', '1.2.0'
#  s.dependency 'UBiMAXAdxAdapter', '2.9.0.0'
  
  s.dependency 'UBiMAXAdSDK', '1.1.2'
  s.dependency 'UBiMAXSplash', '1.1.0'
  s.dependency 'UBiMAXNative', '1.1.1'
  s.dependency 'UBiMAXRewardedVideo', '1.1.0'
  s.dependency 'UBiMAXInterstitial', '1.1.0'
  s.dependency 'UBiMAXAdxAdapter', '2.8.2.0'
  s.dependency 'UBiXMediationSDK', '2.8.2'
  s.dependency 'UBiXMUBiXAdapter', '2.6.1.0'
  
  s.default_subspecs = 'Core'
  
  s.subspec 'Core' do |sp|
    sp.source_files = 'CXHAdSDK-UBiMAX/Classes/**/*'
    sp.dependency 'CXHAdSDK/RC'
  end
  
  s.subspec 'Channel' do |channel|
    channel.dependency 'CXHAdSDK-UBiMAX/Core'
    channel.dependency 'CXHAdSDK/ChannelNoWechat'
  end
  
  s.subspec 'ChannelNoWechat' do |channelNoWechat|
    channelNoWechat.dependency 'CXHAdSDK-UBiMAX/Core'
    channelNoWechat.dependency 'CXHAdSDK/Channel'
  end
  
  
#  s.dependency 'CXHAdSDK/Channel', '1.9.0'
#  s.dependency 'CXHAdSDK/RC', '1.9.0'

  s.pod_target_xcconfig = {
    'OTHER_LDFLAGS' => '-ObjC',
    'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
  }

  s.xcconfig = {
    'ARCHS' => '${ARCHS_STANDARD_64_BIT}',
    'VALID_ARCHS' => '${ARCHS_STANDARD_64_BIT}',
    'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES'
  }
  
  # s.resource_bundles = {
  #   'CXHAdSDK-UBiMAX' => ['CXHAdSDK-UBiMAX/Assets/*.png']
  # }

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'AFNetworking', '~> 2.3'
end
